import request from '@/utils/request'

// 查询二维码生码记录列表
export function listPlatQrRecord(query) {
  return request({
    url: '/bus/platQrRecord/list',
    method: 'get',
    params: query
  })
}

// 查询二维码生码记录详细
export function getPlatQrRecord(id) {
  return request({
    url: '/bus/platQrRecord/' + id,
    method: 'get'
  })
}

// 新增二维码生码记录
export function addPlatQrRecord(data) {
  return request({
    url: '/bus/platQrRecord',
    method: 'post',
    data: data
  })
}

// 修改二维码生码记录
export function updatePlatQrRecord(data) {
  return request({
    url: '/bus/platQrRecord',
    method: 'put',
    data: data
  })
}

// 删除二维码生码记录
export function delPlatQrRecord(id) {
  return request({
    url: '/bus/platQrRecord/' + id,
    method: 'delete'
  })
}

// 二维码出码统计
export function getQrRecordStatistic(params) {
  return request({
    url: '/bus/platQrRecord/listStatistics',
    method: 'get',
    params: params
  })
}
